/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package control;

import boundary.frame.MainWindowFrame;
import javax.swing.JFrame;

/**
 *
 * @author Silex RPR
 */
public class Calculadora {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Calculadora.getApplication().initialize();        
    }
    public void initialize(){
        mainFrame = new MainWindowFrame();
        mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        mainFrame.setVisible(true);
    }
    public static Calculadora getApplication() {
        while(application==null){
            application = new Calculadora();
        }
        return application;
    }

    public MainWindowFrame getMainFrame() {
        return mainFrame;
    }
    
    private MainWindowFrame mainFrame;
    private static Calculadora application;
}
